package com.kun.controller;


import com.kun.common.Result;
import com.kun.entity.Meta;
import com.kun.service.MetaServiceImpl;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;

@RestController
@RequestMapping("/meta")
public class MetaController {

    @Autowired
    private MetaServiceImpl metaService;

    @ApiOperation("获取所有图标")
    @GetMapping("/queryAllIcons")
    public Result queryAllIcons(){
        HashMap<String, Object> map = new HashMap<>();
        List<Meta> metas = metaService.selectAllMetas(map);
        return Result.success(metas);
    }
}
